package com.xjc.market.frame.tag;

import javax.servlet.jsp.tagext.BodyTagSupport;

/**
 * 
 * @author HanqingLiu
 *
 */
public class Mytag4auth extends BodyTagSupport{
	private static final long serialVersionUID = 1L;
	
	private String method;
	private String usertype;
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	public String getUsertype() {
		return usertype;
	}
	public void setUsertype(String usertype) {
		this.usertype = usertype;
	}
	
	public int doStartTag(){
		/*if(CurrentUser.auth(method, usertype)==true)  return EVAL_BODY_INCLUDE;
		else  return SKIP_BODY;*/
		return 0;
	}
	
	public int doEndTag(){
        return  EVAL_BODY_INCLUDE;
	}
}
